package com.dingreading.cloud.web.service;

import com.dingreading.cloud.web.entity.CooperPayOrder;
import com.mybatisflex.core.service.IService;

/**
 * 服务层。
 *
 * @author Administrator
 * @since 2023-11-22
 */
public interface CooperPayOrderService extends IService<CooperPayOrder> {

    Integer getOrderStatus(String code);

    CooperPayOrder getByCode(String code);

    CooperPayOrder getByOrderUid(String orderUid);

    // 更新订单的订单号和支付渠道（防止更改微信支付时订单号重复）
    void updateCodeAndPayChannelCode(String orderUid, String code, String payChannelCode);
}
